<?php
/**
 * RedCross Application
 *
 * @copyright Copyright (c) 2010, Kristian Stokke Tryggestad, Rune Vikestad, Andreas Flaten Wist, Simen Nicolai Echholt, Ole Henrik Jahren
 */


/**
 * Group create form
 */
class Admin_Form_Group_Create extends RedCross_Form
{
    public function init() {
        $this->addElement('text', 'name', array(
            'validators'    =>  array(
                array('NotEmpty', true),
                array('StringLength', true, array(4, 16)),
            ),
            'required'      =>  true,
            'label'         =>  'Gruppenavn',
        ));

        $this->addElement('submit', 'submit', array(
            'required'  => true,
            'ignore'    => true,
            'label'     => 'Opprett gruppe'
        ));

    }
}
